<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>单位管理</title>
</head>
<body>
<form id="mainForm" action="organization.action" method="post"
	class="yform"><input type="hidden" name="page.pageNo"
	id="pageNo" value="${page.pageNo}" /> <input type="hidden"
	name="page.orderBy" id="orderBy" value="${page.orderBy}" /> <input
	type="hidden" name="page.order" id="order" value="${page.order}" />
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<div id="filter">单位名称: <input type="text"
	name="filter_EQS_orgName" value="${param['filter_EQS_orgName']}"
	size="9" /> 主管部门: <input type="text" name="filter_LIKES_burderDep"
	value="${param['filter_LIKES_burderDep'] }" size="9" /> 机构代码证: <input
	type="text" name="filter_LIKES_orgNum"
	value="${param['filter_LIKES_orgNum'] }" size="9" /> <input
	type="button" value="搜索" onclick="search();" /></div>
<div id="content">
<table id="contentTable">
	<tr>
		<th><a href="javascript:sort('orgName','asc')">单位名称</a></th>
		<th><a href="javascript:sort('burderDep','asc')">主管部门</a></th>
		<th><a href="javascript:sort('orgNum','asc')">机构代码证</a></th>
		<th><a href="javascript:sort('fatherOrgan','asc')">上级单位</a></th>
		<th>行政级别</th>
		<th>单位主页</th>
		<th>成立时间</th>
		<th>操作</th>
	</tr>

	<c:forEach items="${allOrganizationList }" var="organization"
		varStatus="var">
		<tr>
			<td id="orgName${var.count}">${organization.orgName}</td>
			<td>${organization.burderDep}&nbsp;</td>
			<td>${organization.orgNum}&nbsp;</td>
			<td>${organization.organization.orgName}&nbsp;</td>
			<td>${organization.politicsLevel}&nbsp;</td>
			<td><a href="${organization.orgHome }">${organization.orgHome
			}</a></td>
			<td>${organization.finishDate }</td>
			<td>&nbsp; <security:authorize ifAnyGranted="ROLE_浏览用户">
				<security:authorize ifNotGranted="ROLE_修改用户">
					<a href="organization!input.action?id=${organization.id}">查看</a>&nbsp;
								</security:authorize>
			</security:authorize> <security:authorize ifAnyGranted="ROLE_修改用户">
				<a href="organization!input.action?id=${organization.id}">修改</a>&nbsp;
								<a href="organization!delete.action?id=${organization.id}">删除</a>
			</security:authorize></td>
		</tr>
	</c:forEach>
</table>
</div>

<div>第${page.pageNo}页, 共${page.totalPages}页 <a
	href="javascript:jumpPage(1)">首页</a> <s:if test="page.hasPre">
	<a href="javascript:jumpPage(${page.prePage})">上一页</a>
</s:if> <s:if test="page.hasNext">
	<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
</s:if> <a href="javascript:jumpPage(${page.totalPages})">末页</a> <security:authorize
	ifAnyGranted="ROLE_修改用户">
	<a href="organization!input.action">增加新单位</a>
</security:authorize></div>
</form>

</body>
</html>